package org.itboys.mobile.entity.mysql.promotion;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 作者：zzq
 * 时间：2017年5月15日
 * 描述：圣代_促销_优惠券_实体。
 */
public class SundayCoupon extends BaseMySqlEntity{
    private Long activityId;//优惠券活动ID
    private Integer type;//类型。优惠券活动中定义。1，注册赠送。2，系统定时发送。配合发送时间使用
    private Long memberId;//用户id
    private String memberName;//用户昵称
    private BigDecimal baseAmount;//起用的金额
    private BigDecimal decuAmount;//满减金额
    private Integer status;//1.未使用2，已使用3，已过期
    private String source;//来源。1，注册赠送。2，系统自动发放
    private Date endTime;//优惠券结束时间。开始时间就是createTime。

    public SundayCoupon() {
    }

    public SundayCoupon(Long activityId,Integer type, Long memberId,String memberName, BigDecimal baseAmount, BigDecimal decuAmount, Integer status, String source, Date endTime) {
        this.activityId = activityId;
        this.type=type;
        this.memberId = memberId;
        this.memberName=memberName;
        this.baseAmount = baseAmount;
        this.decuAmount = decuAmount;
        this.status = status;
        this.source = source;
        this.endTime = endTime;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public BigDecimal getBaseAmount() {
        return baseAmount;
    }

    public void setBaseAmount(BigDecimal baseAmount) {
        this.baseAmount = baseAmount;
    }

    public BigDecimal getDecuAmount() {
        return decuAmount;
    }

    public void setDecuAmount(BigDecimal decuAmount) {
        this.decuAmount = decuAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
